import BaseHeader from "@/components/header/BaseHeader";

export default {
  components: {
    BaseHeader,
  },
  data() {
    return {
      headers: {
        buttons: [],
        title: "",
        content: "",
        backUrl: "/",
      },
    };
  },
  methods: {
    handleBack() {
      this.$router.push(this.backUrl);
      //   this.$routerLink(this.backUrl, data.type, {})
    },
    handleHeaderBack() {
      this.$router.go(-1);
    },
    handleHeaderLink(item) {
      if (!item.params) {
        item.params = { id: this.$route.query.id };
      }
      this.$router.push(item.href);
      //   this.$routerLink(item.href, item.type, item.params)
    },
  },
};
